import request from '@/utils/request'
export function addAddress(data) {
    return request({
        method: "post",
        url: "/app" + (data.addressId?'/goods/updateAddressUser':'/addAddress'),
        data
    })
}
export function getAddress(data) {
    return request({
        method: "post",
        url: "/app/getAddress",
        data
    })
}
export function deleteAddress(data) {
    return request({
        method: "post",
        url: "/app/deleteAddress",
        data
    })
}
export function updateAddress(data) {
    return request({
        method: "post",
        url: "/app/updateAddress",
        data
    })
}